文章目录
  1. 1. NetworkEye:iOS 网络调试库
    1. 1.0.0.1. Podfile
      1. 1.0.0.1.0.1. 使用:

NetworkEye:iOS 网络调试库

NetworkEye是一个网络调试库,可以监控App内所有HTTP请求并显示请求相关的所有信息,方便App开发的网络调试。

可以检测到包括网页,NSURLConnecttion,NSURLSession,AFNetworking,第三方库,第三方SDK等的HTTP请求,非常方便实用。

NetworkEye,a iOS network debug library,It can monitor all HTTP requests
within the App and displays all information related to the request.

Podfile

使用:

注意请在DEBUG模式下使用NetworkEye
在AppDelegate.m里面加入下面代码就可以了

使用的时候可以通过摇一摇(Shake
Gesture)手势调出监控数据界面NEHTTPEyeViewController
也可以用如下代码直接present出来。

在NEHTTPEye.h里面有两个可以配置的参数即默认数据库密码是networkeye和默认监控最多300条请求,请求的保存位置在缓存目录的networkeye.sqlite内。

NetworkEye使用了Aspects并且依赖仓库SQLCipher。
Aspects用于摇一摇手势,SQLCipher用于加密数据库。

NetworkEye的监控数据界面如图:

查看原文

文章目录
  1. 1. NetworkEye:iOS 网络调试库
    1. 1.0.0.1. Podfile
      1. 1.0.0.1.0.1. 使用: